-- GENERATED SPELL FOR [Frenzied Pterrordax] --


function spell0_9167(pUnit, Event) --@Terrify,n/a--
pUnit:FullCastSpellOnTarget(7399,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9167', 4251, 1)
end

function Sorts_9167(pUnit, Event)
local choix_sorts_9167 = math.random(0, 0)
if choix_sorts_9167 == 0 then
pUnit:RegisterEvent('spell0_9167', 1, 1)
end
end

function mob9167_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9167', math.random(1500, 3000), 1)
end

function mob9167_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9167_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9167_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9167, 1, 'mob9167_Action')
RegisterUnitEvent(9167, 2, 'mob9167_Leave')
RegisterUnitEvent(9167, 3, 'mob9167_Kill')
RegisterUnitEvent(9167, 4, 'mob9167_Die')
